#!/bin/sh

for i in inputfiles/*; do
  rm maze.in
  cp $i maze.in
  echo $i
  rm log.out
  rm result.out
  rm fifo1
  rm fifo2
  mkfifo fifo1
  mkfifo fifo2
  exec 8<> fifo1
  exec 9<> fifo2
  ./qb <&8 >&9 &
  ./qbtester <&9 >&8 &
  wait
  cat result.out
done;
